class CreateRatings < ActiveRecord::Migration
  def self.up
    create_table :ratings do |t|
      t.column :amount, :integer
      t.column :subject_id, :integer
      t.column :subject_type, :string
      t.column :rater_id, :integer
      t.column :created_at, :integer
    end
  end

  def self.down
    drop_table :ratings
  end
end
